package com.iengoo.inductionms.ctrl.rest;

import com.iengoo.inductionms.entity.PersonnelGroup;
import com.iengoo.inductionms.entity.PoliticalPtatus;
import com.iengoo.inductionms.service.PoliticalPtatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Author:huermao
 **/
@RestController
@RequestMapping("/political_ptatus")
public class PoliticalPtatusController {
    @Autowired
    private PoliticalPtatusService politicalPtatusService;
    @GetMapping
    public List<PoliticalPtatus> getPoliticalPtatus() {
        List<PoliticalPtatus> politicalPtatusList = politicalPtatusService.queryAll();
        return politicalPtatusList;
    }
}
